﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OmronLib.Base
{
    public class CipTypes
    {
        public static Dictionary<string, int> TypeLength = new Dictionary<string, int>
        {
            { "C1",8},
            { "C2",8},
            { "C3",16},
            { "C4",32},
            { "C5",64},
            { "C6",8},
            { "C7",16},
            { "C8",32},
            { "C9",64},
            { "CA",32},
            { "CB",64},
            { "D0",0},
            { "D1",8},
            { "D2",16},
            { "D3",32},
            { "D4",64},
        };
    }

    public enum CipDataType
    {
        BOOL = 0xC1,
        SINT = 0xC2,
        INT = 0xC3,
        DINT = 0xC4,
        LINT = 0xC5,
        USINT = 0xC6,
        UINT = 0xC7,
        UDINT = 0xC8,
        ULINT = 0xC9,
        REAL = 0xCA,
        LREAL = 0xCB,
        STRING = 0xD0,
        BYTE = 0xD1,
        WORD = 0xD2,
        DWORD = 0xD3,
        LWORD = 0xD4
    }
}
